package com.weixin.sdk.pay;

import com.weixin.sdk.utils.SignKit;

public class UnifiedOrderAppReqData extends BaseReqData{
	private static final long serialVersionUID = 1L;
	  private String device_info;
	  private String body;
	  private String out_trade_no;
	  private String total_fee;
	  private String spbill_create_ip;
	  private String trade_type;
	  
	  public UnifiedOrderAppReqData(String body, String out_trade_no, String total_fee, String spbill_create_ip, String trade_type)
	  {
	    this.device_info = "WEB";
	    this.nonce_str = SignKit.genRandomString32();
	    this.body = body;
	    this.out_trade_no = out_trade_no;
	    this.total_fee = total_fee;
	    this.spbill_create_ip = spbill_create_ip;
	    
	    this.trade_type = trade_type;
	    
	    setSign(SignKit.sign(toMap()));
	  }
	  
	  public String getDevice_info()
	  {
	    return this.device_info;
	  }
	  
	  public void setDevice_info(String device_info)
	  {
	    this.device_info = device_info;
	  }
	  
	  public String getBody()
	  {
	    return this.body;
	  }
	  
	  public void setBody(String body)
	  {
	    this.body = body;
	  }
	  
	  public String getOut_trade_no()
	  {
	    return this.out_trade_no;
	  }
	  
	  public void setOut_trade_no(String out_trade_no)
	  {
	    this.out_trade_no = out_trade_no;
	  }
	  
	  public String getTotal_fee()
	  {
	    return this.total_fee;
	  }
	  
	  public void setTotal_fee(String total_fee)
	  {
	    this.total_fee = total_fee;
	  }
	  
	  public String getSpbill_create_ip()
	  {
	    return this.spbill_create_ip;
	  }
	  
	  public void setSpbill_create_ip(String spbill_create_ip)
	  {
	    this.spbill_create_ip = spbill_create_ip;
	  }
	  
	  public String getTrade_type()
	  {
	    return this.trade_type;
	  }
	  
	  public void setTrade_type(String trade_type)
	  {
	    this.trade_type = trade_type;
	  }

}
